﻿@inherits Kaleido.Util.Mvc.DynamicViewPage

<div id="subNavTemp">
    <div id="subNav">
        @{
            IncludeOnce("/config/pages.rhp");
            IncludeOnce("init.php");//???
            if(var["subNav"]!=null){
                foreach(var navItem in var.subNav){
                    var navItems = navItem.Split(';');
                    @:<a style='background-color:@navItems[2];'@var["makeLink"](navItems[1].Trim())>@navItems[0].Trim()</a>
                }
            }   
        }
    </div>
</div>

@{
    var["metroLink"] = new Action<string>((url) =>
    {
        @:(" " + var["makeLink"](url.Trim()) + " rel='metro-link' ");
    });
}